const mongoose = require('mongoose');

const CollectionsSchema = mongoose.Schema({
    //标题
    title: String,
    //优惠
    sell: String,
    //所在地区
    address: String,
    //点赞数
    like:{ type:Number, default: 0},
    //攻略内容
    content: String,
    //图片
    imgs: String,
    //发布者
    publish_man:String,
    //发布时间
    publish_time:String,
    //收藏者
    collect_man:String,
    //攻略ID
    id:String,
},{
  versionKey: false
});

module.exports = CollectionsSchema;
